package com.wlxy.springbootdemo.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * 开启Springboot下的WebSocket支持
 *
 * @author daxiang
 * @version V1.0
 * @Package com.elephant.framework.config
 * @date 2020/4/29 16:33
 * @Copyright © 2019-2020 daxiang
 */
@Configuration
public class WebSocketConfig {
    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }
}
